<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<?php if (is_array($classdb)){?>
	<table width="263" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">
      <tr>
        <td height="42" background="images/c1.jpg">
		<table width="218" border="0" cellspacing="0" cellpadding="0" style=" margin:0 auto 6px; ">
          <tr>
            <td width="28"><img src="images/tb2.jpg" width="14" height="14" /></td>
            <td width="150" class="xg2"><?php echo $classdb["name"]?></td>
			<td width="40" align="right">&nbsp;</td>
          </tr>
        </table>
		</td>
      </tr>
      <tr>
        <td style="border-bottom:solid #CCC 1px;border-left:solid #CCC 1px;border-right:solid #CCC 1px; padding-bottom:10px; background:#FFFFFF;">
<?php if ($classdb["sons"]>0){
$rs=$db->excu("select * from qh_articleclass where class='".($classdb["class"]+1)."' and fup='$classdb[fid]' order by list,fid");
if ($db->num_rows($rs)>0){
	while($rsdb=$db->fetch_array($rs)){
		if ($rsdb["classtype"]==3){$aurlstr=$rsdb["jumpurl"];$target=' target="_blank"';}else{$aurlstr="article.php?id=$rsdb[fid]";$target='';}
		echo '<a href="'.$aurlstr.'" '.$target.' class="link_leftmenu">'.$rsdb["name"].'</a>';
	}
}
}
else{
	echo '<a href="article.php?id='.$nei_classdb["fid"].'" class="link_leftmenu">'.$nei_classdb["name"].'</a>';
}?>
		</td>
      </tr>
    </table>
<?php }?>
<?php require("w_neileft.php");?>
